package com.li.youhappygo.exception;

import com.li.youhappygo.model.vo.common.ResultCode;
import lombok.Data;

@Data
public class GlobalException extends RuntimeException{
    private String message;
    private Integer code;
    private ResultCode resultCode;
    public GlobalException(ResultCode resultCode) {

        this.message = resultCode.getMessage();
        this.code = resultCode.getCode();
        this.resultCode = resultCode;
    }


}
